package com.yanqu.road.server.cmd.peakstronghold;

import com.yanqu.road.logic.pb.CrossRankPb;
import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.pb.activity.PeakStrongholdWarProto;
import com.yanqu.road.server.cmd.CrossCommand;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.manager.peakstronghold.CrossPeakStrongholdActivityMgr;
import com.yanqu.road.server.manager.peakstronghold.CrossPeakStrongholdMgr;
import com.yanqu.road.server.protocol.Protocol;

//@Cmd(code = Protocol.C_PEAK_STRONGHOLD_NOTIFY_UPDATE_MEMBER_ABILITY_RESP, desc = "上传的商会成员历史最高门客赚钱和")
@Deprecated
public class CrossPeakStrongholdUpdateMemberAbilityCmd extends CrossCommand {

    @Override
    public boolean parseData(YanQuMessage packet) throws Exception {
        return true;
    }

    @Override
    public void execute(YanQuMessage packet) throws Exception {
        PeakStrongholdWarProto.CrossPeakHoldUnionMemberAbilityResp req = PeakStrongholdWarProto.CrossPeakHoldUnionMemberAbilityResp.parseFrom(packet.getBytes());
        CrossPeakStrongholdMgr.updateTotalAbility(req.getActivityId(), req);
    }

    @Override
    public void sendData() {

    }
}
